home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / Tuner / TunerApp.h < prev    next >
Encoding:
Text File  |  1992-06-09  |  1.4 KB  |  72 lines

  1. /* TunerApp.h -- copyright 1992 by C.D.Lane */
  2.  
  3. #import <appkit/appkit.h>
  4. #import <soundkit/soundkit.h>
  5. #import <musickit/musickit.h>
  6.  
  7. @interface TunerApp : Application
  8. {
  9.     id soundMeter, soundView;
  10.     id centSlider, sharp, flat, attune;
  11.     id sound, sample, version, defaults;
  12.     id calibrationField, calibrationMatrix;
  13.     id transpositionField, transpositionMatrix;
  14.     id buttonMatrix, methodMatrix, helpScrollView;
  15.     id squelchSlider, timeSlider, toleranceSlider, adjustmentSlider;
  16.  
  17.     MKKeyNum key, lastKey;
  18.     DPSTimedEntry timedEntry;
  19.     double frequency, amplitude;
  20. }
  21.  
  22. - appDidInit:sender;
  23. - free;
  24.  
  25. - willRecord:sender;
  26. - didRecord:sender;
  27.  
  28. - windowDidBecomeKey:sender;
  29.  
  30. - computeFrequency;
  31. - computeFrequencyViaFFT;
  32.  
  33. - showNoteName;
  34. - clearNoteName;
  35.  
  36. - showCentError;
  37. - clearCentError;
  38.  
  39. - switchMethod:(const char *) reason;
  40.  
  41. - setDefault:sender;
  42. - setCalibration:sender;
  43. - setTransposition:sender;
  44.  
  45. - printf:(const char *) format, ...;
  46.  
  47. - loadDefaults:sender;
  48. - saveDefaults:sender;
  49. - resetDefaults:sender;
  50.  
  51. - setVersion:anObject;
  52.  
  53. @end
  54.  
  55. @interface Sound(SimpleMethods)
  56.  
  57. - (int)    convertToFormat:(int) aFormat;
  58.  
  59. @end
  60.  
  61. #import <objc/NXStringTable.h>
  62.  
  63. @interface NXStringTable(DefaultsTable)
  64.  
  65. - registerDefaults:(const char *) owner;
  66. - writeDefaults:(const char *) owner;
  67. - updateDefaults;
  68.  
  69. - (int) applyToDefaults:(const char *) owner function:(int (*)(const char *, const NXDefaultsVector)) routine;
  70.  
  71. @end
  72.